laravel get random row

84

laravel get random row -

User::all()->random();
User::all()->random(10); // The amount of items you wish to receive

Comments

Submit
0 Comments